﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ASale_REPairPrint.aspx.cs" Inherits="ArtLand.OA.Project.AfterSale.ASale_REPairPrint" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../js/jquery-1.4.1.min.js"></script>
    <script src="../js/jquery.jqprint-0.3.js"></script>
    <script src="../js/WebCommon.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager runat="server" ID="page1" AutoSizePanelID="pan1" />
        <ext:Panel runat="server" ID="pan1" ShowBorder="false" ShowHeader="false">
            <Toolbars>
                <ext:Toolbar Position="Footer">
                    <Items>
                        <ext:Button runat="server" ID="btnSave" IconAlign="Top" Text="打印" Icon="Printer" OnClientClick="PrintHtml();"></ext:Button>
                        <ext:ToolbarSeparator></ext:ToolbarSeparator>
                        <ext:Button runat="server" ID="btnT" Text="关闭" Icon="Cancel" IconAlign="Top" OnClientClick="window.close();"></ext:Button>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Items>
                <ext:ContentPanel runat="server" ID="con1" BodyPadding="10px" ShowBorder="false" ShowHeader="false">

                    <style>
                        #mdA table, #mdA table td, #mdA table th
                        {
                            border: 1px solid #000000;
                            border-collapse: collapse;
                            font-size: 14px;
                            text-align: center;
                        }
                    </style>
                    <div id="mdA">
                        <table width="650" height="380">
                            <tr>
                                <td colspan="7" style="text-align: right; padding-right: 5px;">
                                    <%=Info.CRDATE %>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="7">
                                    <div>
                                        <div style="float: left; padding-left: 10px; padding-right: 4px; line-height: 20px;">售后维修电话:</div>
                                        <div style="float: left;">
                                            <%=Info.TELNUB %>
                                        </div>
                                        <div style="float: right; padding-right: 10px;">
                                            <%=Info.OEMAIL %>
                                        </div>
                                        <div style="float: right; padding-right: 4px; line-height: 20px;">售后服务邮箱:</div>
                                    </div>

                                </td>
                            </tr>
                            <tr>
                                <td style="width: 100px">客户名称</td>
                                <td colspan="3" style="text-align: left; padding-left: 5px;">
                                    <%=Info.CUTNAM %>
                                </td>
                                <td style="width: 100px">地址</td>
                                <td colspan="2" style="text-align: left; padding-left: 5px;">
                                    <%=Info.ADDRES %>
                                </td>
                            </tr>
                            <tr>
                                <td>电话</td>
                                <td colspan="3" style="text-align: left; padding-left: 5px;">
                                    <%=Info.CUTTEL %>
                                </td>
                                <td>联系人</td>
                                <td colspan="2" style="text-align: left; padding-left: 5px;">
                                    <%=Info.CONTAT %>
                                </td>
                            </tr>
                            <tr>
                                <td rowspan="5">维修项目</td>
                                <td colspan="4" rowspan="5" style="text-align: left; padding-left: 5px;">
                                    <%=Info.PRJECT %>

                                </td>
                                <td>原送货安装日期</td>
                                <td style="width: 120px; text-align: left; padding-left: 5px;">
                                    <%=Info.SEDATE.Value.ToString("yyyy-MM-dd") %>
                                </td>
                            </tr>
                            <tr>
                                <td>通知维修日期</td>
                                <td style="text-align: left; padding-left: 5px;">
                                    <%=Info.REDATE.Value.ToString("yyyy-MM-dd") %>
                                </td>
                            </tr>
                            <tr>
                                <td>要求完工期</td>
                                <td style="text-align: left; padding-left: 5px;">
                                    <%=Info.REQDAT.Value.ToString("yyyy-MM-dd") %>
                                </td>
                            </tr>
                            <tr>
                                <td>实际完工期</td>
                                <td style="text-align: left; padding-left: 5px;">
                                    <%=Info.COMDAT.Value.ToString("yyyy-MM-dd") %>
                                </td>
                            </tr>
                            <tr>
                                <td>维修员签名</td>
                                <td style="text-align: left; padding-left: 5px;">
                                    <%=Info.ENGSIG %>
                                </td>
                            </tr>
                            <tr runat="server" id="tr1">
                                <td>维修结果</td>
                                <td colspan="4">
                                    <%=Info.RESULT %>
                                </td>
                                <td>客户签名</td>
                                <td style="text-align: left; padding-left: 5px;">
                                    <%=Info.CUTSIG %>
                                </td>
                            </tr>
                            <tr>
                                <td>维修性质</td>
                                <td>
                                    <%if (Info.NATURE.Value)
                                      { %>
                                    <input type="checkbox" value="免费" checked="checked" disabled="disabled" />
                                    <%}
                                      else
                                      { %>
                                    <input type="checkbox" value="免费" disabled="disabled" />
                                    <%} %>
                                </td>
                                <td colspan="5">
                                    <div style="float: left; padding-left: 5px;">
                                        <%if (!Info.NATURE.Value)
                                          { %>
                                        <input type="checkbox" value="收费" checked="checked" disabled="disabled" />
                                        <%}
                                          else
                                          { %>
                                        <input type="checkbox" value="收费" disabled="disabled" />
                                        <%} %>
                                    </div>
                                    <div style="float: left;">
                                        <%=Info.AMOUNT %>
                                    </div>
                                    <div style="float: left; padding-left: 5px;">
                                        <%if (Info.ISPREM.Value)
                                          { %>
                                    已收
                                    <%}
                                          else
                                          {%>未收<%} %>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">检查其他家具产品</td>
                                <td colspan="5" style="padding-left: 5px;">
                                    <%if (Info.IFCHEK.Value)
                                      { %>
                                    是
                                    <%}
                                      else
                                      {%>否<%} %>
                                </td>
                            </tr>
                        </table>
                    </div>
                </ext:ContentPanel>
            </Items>
        </ext:Panel>
    </form>
    <script>
        function PrintHtml() {
            var c = "<%=con1.ClientID%>";
             $("#" + c).jqprint({
                 debug: false,
                 importCSS: true,
                 printContainer: true,
                 operaSupport: true
             });
         }
    </script>
</body>
</html>
